<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

<div id="app">

    <ul>
        <li v-for="item,index in items" :key="index">
            {{index}} {{item.message}}
        </li>
    </ul>

    <ul>
        <li v-for="value,key in object">
            {{key}}:{{value}}
        </li>
    </ul>

</div>


<script type="text/javascript">

    var vm = new Vue({
        el:"#app",
        data:{
            items: [
                {message: "Foo"},
                {message: "Bar"}
            ],
            object:{
                tile:"How to do lists in Vue",
                author: "Jane Doe",
                publishedAt: "2024-03-13"
            }
        }
    })


</script>
</body>
</html>
